package main

import (
	"cron/cron"
	"fmt"
	"time"
)

func main() {
	cron.NewCron(cron.TimeConfig{
		BeginAt: time.Now(),
		Interval: []time.Duration{
			1 * time.Second,
		},
	}, &cron.Context{}, func(ctx *cron.Context) error {
		fmt.Println("test", time.Now())
		return nil
	}).Start()
}
